var http = require('http');
var fs = require('fs');
var path = require('path');

http.createServer((req,res) => {
    var filePath = path.join(__dirname, '/data.txt');
    var readable = fs.createReadStream(filePath);
    readable.pipe(res);

}).listen(8081);

console.log("sever is listening 8081");